<html>
<head>
<title>Example Application</title>
</head>
<body>
	<%@ page import="mwoelm.control.CounterControl"%>
	<%
		CounterControl cc = (CounterControl) session.getAttribute("counter");
		if (cc == null) {
			cc = new CounterControl();
			session.setAttribute("counter", cc);
		}
		String incrementCmd = request.getParameter("increment");
		if (incrementCmd != null) {
			cc.increment();
		}
	%>

	<h1>Example - Application</h1>
	<p>This is my counter control test.</p>
	<span> Counter value: <%=cc.getCurrentValue()%>
	</span>
	<form action="index.jsp" method="POST">
		<input type="submit" value="Increment" name="increment" />
	</form>
</body>
</html>